package com.haikesi.config;

/**
 * 信息类
 * 
 * @author ry
 * @date 2018/9/25
 */

public enum Type {
    SUCCESS(0, "成功"),

    PERMISSIONS_VALIDATE_FAIL(401000, "没有权限访问此接口"), 
    ACCESS_TOKEN_VERFIY_FAIL(401005, "安全签名验证失败");

    private Integer code;
    private String message;

    Type(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
